function gets(pageNum) {
    var pageN = pageNum;
    $("#pageNum").val(pageN);
    var serializeArray = $("#more-info-dialog").serializeArray();
    $.ajax({
            url: '/myspringboot/StatisticsController/StatisticsFindAllHs',
            type: 'post',
            dataType: "json",
            data: serializeArray,
            success: function (result) {
                var result = result.data;
                yibu(result.pages, result.pageNum);
                var list = result.list;
                $(".a").empty();
                var number = 0;
                var number1 = 0;
                var number2 = 0;
                var number3 = 0;
                var number4 = 0;
                var number5 = 0;
                var number6 = 0;
                var number7 = 0;
                for (var i = 0; i < list.length; i++) {
                    var hospital = list[i].hospital;
                    if (hospital != null) {
                        var hName = hospital.hName;
                        var hId = hospital.hId;
                    }
                    var a = i + 1;
                    var podiState = list[i].podiState;
                    var state = null;
                    if (podiState == 0) {
                        state = "已发货"
                    } else if (podiState == 1) {
                        state = "未发货"
                    } else if (podiState == 2) {
                        state = "已入库"
                    }
                    var podiOrder = list[i].podiOrder;
                    var podiOrderTotal = list[i].podiOrderTotal;
                    var podiDelivery = list[i].podiDelivery;
                    var podiDeliveryTotal = list[i].podiDeliveryTotal;
                    var podiReturn = list[i].podiReturn;
                    var podiReturnTotal = list[i].podiReturnTotal;
                    var podiSettlement = list[i].podiSettlement;
                    var podiSettlementTotal = list[i].podiSettlementTotal;
                    var tr = '<tr>' +
                        '<td>' + a + '</td>' +
                        '<td>' + hName + '</td>' +
                        '<td>' + state + '</td>' +
                        '<td>' + podiOrder + '</td>' +
                        '<td>' + podiOrderTotal + '</td>' +
                        '<td>' + podiDelivery + '</td>' +
                        '<td>' + podiDeliveryTotal + '</td>' +
                        '<td>' + podiReturn + '</td>' +
                        '<td>' + podiReturnTotal + '</td>' +
                        '<td>' + podiSettlement + '</td>' +
                        '<td>' + podiSettlementTotal + '</td>' +
                        '<td>' + '<button onclick="findOne(' + hId + ')" data-toggle="modal" data-target="#myModal">查询</button></td>' +
                        '</tr>'
                    $(".a").append(tr);
                    number += Number(podiOrder);
                    number1 += Number(podiOrderTotal);
                    number2 += Number(podiDelivery);
                    number3 += Number(podiDeliveryTotal);
                    number4 += Number(podiReturn);
                    number5 += Number(podiReturnTotal);
                    number6 += Number(podiSettlement);
                    number7 += Number(podiSettlementTotal);


                    $("#btn_sub").empty();
                    var tr1 = '<td>' + '总计:' + '</td>' +
                        '<td>' + '' + '</td>' +
                        '<td>' + '' + '</td>' +
                        '<td>' + number + '</td>' +
                        '<td>' + number1 + '</td>' +
                        '<td>' + number2 + '</td>' +
                        '<td>' + number3 + '</td>' +
                        '<td>' + number4 + '</td>' +
                        '<td>' + number5 + '</td>' +
                        '<td>' + number6 + '</td>' +
                        '<td>' + number7 + '</td>'
                    $("#btn_sub").append(tr1);
                }
            }
        }
    )
}

